﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SpaceNeedle.x6473.WindowsPhone.Common
{
    public class MultiResImageChooser
    {
        public Uri BestResolutionImage
        {
            get
            {
                switch (ResolutionHelper.CurrentResolution)
                {
                    case Resolutions.HD:
                        return new Uri("/Assets/Splash/SplashSP1.screen-720p.png", UriKind.Relative);
                    case Resolutions.WXGA:
                        return new Uri("/Assets/Splash/SplashSP1.screen-wxga.png", UriKind.Relative);
                    case Resolutions.WVGA:
                        return new Uri("/Assets/Splash/SplashSP1.screen-wvga.png", UriKind.Relative);
                    default:
                        throw new InvalidOperationException("Unknown resolution type");
                }
            }
        }

    }

}
